
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package be.djdb.shop;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;

/**
* @author Lieven Roegiers
* @copyright 2013
* @from MY_SHOP
*/
@NamedQueries({
    @NamedQuery(name="Shop.findByAll",query="SELECT s FROM Shop s"),
})
@Entity
public class Shop implements Serializable{
    @Id @GeneratedValue(generator ="SHOP_ID")
    private int id;
    @OneToMany
    List<Category> categorys;
    private String name;
    private String domain;
    public String getName(){
        return name;
    }
    public String getDomain(){
        return domain;
    }
    public void setDomain(String domain){
        this.domain = domain;
    }
}
